package com.ncsc.lmis.model;
// Generated Feb 25, 2014 11:44:39 PM by Hibernate Tools 3.4.0.CR1


import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * SysCustBlacklist generated by hbm2java
 */
@Entity
@Table(name="sys_cust_blacklist"
    ,catalog="lmis"
)
public class SysCustBlacklist  implements java.io.Serializable {


     private Integer blNo;
     private SysCust sysCust;
     private SysCustBlacklistType sysCustBlacklistType;
     private Short blOrgNo;
     private Date blDate;
     private String blComment;
     private Short blIsCancelStatus;
     private String blCancelComment;
     private String blInfoSource;

    public SysCustBlacklist() {
    }

	
    public SysCustBlacklist(SysCust sysCust) {
        this.sysCust = sysCust;
    }
    public SysCustBlacklist(SysCust sysCust, SysCustBlacklistType sysCustBlacklistType, Short blOrgNo, Date blDate, String blComment, Short blIsCancelStatus, String blCancelComment, String blInfoSource) {
       this.sysCust = sysCust;
       this.sysCustBlacklistType = sysCustBlacklistType;
       this.blOrgNo = blOrgNo;
       this.blDate = blDate;
       this.blComment = blComment;
       this.blIsCancelStatus = blIsCancelStatus;
       this.blCancelComment = blCancelComment;
       this.blInfoSource = blInfoSource;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)

    
    @Column(name="BL_NO", unique=true, nullable=false)
    public Integer getBlNo() {
        return this.blNo;
    }
    
    public void setBlNo(Integer blNo) {
        this.blNo = blNo;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="CUST_NO", nullable=false)
    public SysCust getSysCust() {
        return this.sysCust;
    }
    
    public void setSysCust(SysCust sysCust) {
        this.sysCust = sysCust;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="BL_TYPE_NO")
    public SysCustBlacklistType getSysCustBlacklistType() {
        return this.sysCustBlacklistType;
    }
    
    public void setSysCustBlacklistType(SysCustBlacklistType sysCustBlacklistType) {
        this.sysCustBlacklistType = sysCustBlacklistType;
    }

    
    @Column(name="BL_ORG_NO")
    public Short getBlOrgNo() {
        return this.blOrgNo;
    }
    
    public void setBlOrgNo(Short blOrgNo) {
        this.blOrgNo = blOrgNo;
    }

    @Temporal(TemporalType.DATE)
    @Column(name="BL_DATE", length=10)
    public Date getBlDate() {
        return this.blDate;
    }
    
    public void setBlDate(Date blDate) {
        this.blDate = blDate;
    }

    
    @Column(name="BL_COMMENT", length=500)
    public String getBlComment() {
        return this.blComment;
    }
    
    public void setBlComment(String blComment) {
        this.blComment = blComment;
    }

    
    @Column(name="BL_IS_CANCEL_STATUS")
    public Short getBlIsCancelStatus() {
        return this.blIsCancelStatus;
    }
    
    public void setBlIsCancelStatus(Short blIsCancelStatus) {
        this.blIsCancelStatus = blIsCancelStatus;
    }

    
    @Column(name="BL_CANCEL_COMMENT", length=500)
    public String getBlCancelComment() {
        return this.blCancelComment;
    }
    
    public void setBlCancelComment(String blCancelComment) {
        this.blCancelComment = blCancelComment;
    }

    
    @Column(name="BL_INFO_SOURCE", length=100)
    public String getBlInfoSource() {
        return this.blInfoSource;
    }
    
    public void setBlInfoSource(String blInfoSource) {
        this.blInfoSource = blInfoSource;
    }




}


